#pragma once
#include "afxwin.h"
#include "afxcmn.h"

#include "SubDlgSystemSet.h"

#include "Dlg1.h"
#include "Dlg2.h"

// CDlgSystemSet dialog

class pageStruct
{
public:
	CSubDlgSystemSet *pDlg;
	UINT id;
};

class CDlgSystemSet : public CDialog
{
	DECLARE_DYNAMIC(CDlgSystemSet)

public:
	CDlgSystemSet(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgSystemSet();

// Dialog Data
	enum { IDD = IDD_DLG_SYSTEMSET };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	CDlg1 dlg1;
	CDlg2 dlg2;
	CStatic m_ctlBoundingFrame;
	CRect       m_frameRect;
	CTreeCtrl m_ctlOptionTree;
	virtual BOOL OnInitDialog();
	CPtrArray   m_pages;
	int         m_iCurPage;
public:
	bool EndOK();
	bool AddPage(CSubDlgSystemSet &page);
	bool ShowPage(int iPage);
	afx_msg void OnTvnSelchangedTree1(NMHDR *pNMHDR, LRESULT *pResult);
protected:
	virtual void OnOK();
	
	virtual void OnCancel();
};
